<?php

$themecolors = array(
	'bg' => 'ffffff',
	'text' => 'ffffff',
	'link' => 'ffffff'
	);
	
define('HEADER_TEXTCOLOR', 'ffffff');
define('HEADER_IMAGE', '%s/images/header.jpg');
define('HEADER_IMAGE_WIDTH', 780);
define('HEADER_IMAGE_HEIGHT', 200);

function header_style() { ?>
<style type="text/css">
#header{
	background: url('<?php header_image() ?>');
}
<?php if ( 'blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ) { ?>
h1, #blog-description {
	display: none;
}
<?php } 
else { ?>
h1, h1 a, h1 a:hover, #blog-description {
	color: #<?php header_textcolor() ?>;
}
<?php } ?>
</style>
<?php }
function admin_header_style() { ?>
<style type="text/css">
#headimg {
	background: url('<?php header_image() ?>');
	width: 780px;
	height: 150px;
	color: #fff;
}

#headimg h1 {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: bold;
	margin: 0;
}

#headimg h1 {
	font-size: 325%;
	padding-top: 40px;
}

#headimg h1, #headimg #desc {
	text-align: center;
}

#headimg h1, #headimg h1 a, #headimg h1 a:hover, #desc {
	color: #<?php header_textcolor() ?>;
	text-decoration: none;
	border: none;
}

<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
	display: none;
}
#headimg h1 a, #headimg #desc {
	color:#<?php echo HEADER_TEXTCOLOR ?>;
}
<?php } ?>
</style>
<?php }

if ( function_exists('add_custom_image_header') ) {
	add_custom_image_header('header_style', 'admin_header_style');
}

?>